import { Injectable } from '@nestjs/common';

import { Model } from 'mongoose';
import { InjectModel } from '@nestjs/mongoose';
/*
1. 引入typeorm,获取数据表的方法
2. 引入数据实例(schema)
3. 注入构造器
*/

@Injectable()
export class UserService {
  constructor() {}

  findAll() {
    // console.log(await this.usersRepository.find());

    return '123';
  }

  index(id: string): string {
    console.log('id: ', id);
    return `你好 ${id}`;
  }
}
